﻿// -----------------------------------------------------------------------
// <copyright file="EntityManager.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace employee_test
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
   

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class EntityManager
    {
        private static EmployeePayRollDBDataContext context;


        public EntityManager()
        {
            context = new EmployeePayRollDBDataContext();
        }

        public static EmployeePayRollDBDataContext Context
        {
            get
            {
                if (context == null)
                {
                    context = new EmployeePayRollDBDataContext();
                }

                return context;
            }
        }

    }
}
